package com.watch.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.watch.system.model.bo.UserFormBO;
import com.watch.system.model.entity.CarUser;
import com.watch.system.model.entity.TCarSysDesc;
import com.watch.system.model.form.SysDescForm;
import com.watch.system.model.vo.CarSysDescPageVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

/**
 * 用户对象转换器
 *
 * @author haoxr
 * @since 2022/6/8
 */
@Mapper(componentModel = "spring")
public interface CarSysDescConverter {


    CarSysDescPageVO toPageVo(CarSysDescPageVO bo);

    Page<CarSysDescPageVO> toPageVo(Page<CarSysDescPageVO> bo);

    SysDescForm bo2Form(UserFormBO bo);

    SysDescForm entity2Form(CarUser entity);

    @InheritInverseConfiguration(name = "entity2Form")
    TCarSysDesc form2Entity(SysDescForm entity);

}
